package com.mailanalyzer.dto;

/**
 * 
 * @author anibal.kolker
 *
 */
public class FlightData {

	private float price;
	private Way goingTo;
	private Way comingBack;

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public Way getGoingTo() {
		return goingTo;
	}

	public void setGoingTo(Way goingTo) {
		this.goingTo = goingTo;
	}

	public Way getComingBack() {
		return comingBack;
	}

	public void setComingBack(Way comingBack) {
		this.comingBack = comingBack;
	}

	@Override
	public String toString() {
		StringBuilder s = new StringBuilder();
		s.append("Going: "+goingTo);
		if(comingBack!=null)
			s.append(" Coming back: "+comingBack);
		s.append(" Price: "+price);
		return s.toString();
	}




}
